#pragma once
#include "Dao.h"

class CTableLogic{
public:
	CTableLogic(void);
	~CTableLogic(void);

	void SetDao(CDao *pDao);
	bool ShowTables(CString strDBName,vector<CTableEntity> *pTableList);
	bool CreateTable(CString strDBName,CString strTableName);
	bool DropTable(CString strDBName,CString strTableName);
	int GetLastError();
	
private:
	CDao *m_pDao;
	int m_nLastError;
};

